import request from '@/utils/request'

// 查询物资出库详情列表
export function listElecMaterialOutDetail(query) {
  return request({
    url: '/elec/elecMaterialOutDetail/list',
    method: 'get',
    params: query
  })
}

// 查询物资出库详情详细
export function getElecMaterialOutDetail(outdetailId) {
  return request({
    url: '/elec/elecMaterialOutDetail/' + outdetailId,
    method: 'get'
  })
}

// 新增物资出库详情
export function addElecMaterialOutDetail(data) {
  return request({
    url: '/elec/elecMaterialOutDetail',
    method: 'post',
    data: data
  })
}

// 修改物资出库详情
export function updateElecMaterialOutDetail(data) {
  return request({
    url: '/elec/elecMaterialOutDetail',
    method: 'put',
    data: data
  })
}

// 删除物资出库详情
export function delElecMaterialOutDetail(outdetailId) {
  return request({
    url: '/elec/elecMaterialOutDetail/' + outdetailId,
    method: 'delete'
  })
}

// 提交通道门识别物资信息
export function submitMaterialInfo(query) {
  return request({
    url: '/elec/elecMaterialOutDetail/submitMaterialInfo',
    method: 'post',
    data: query
  })
}
